<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<%@ page import="structures.User;"%>
<%User user = (User) session.getAttribute("user");%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>TiVendoIo - Item</title>

    <!-- Bootstrap -->
    <link href="/serviceTechnologies/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.0/css/font-awesome.css" rel="stylesheet">
    <link href="css/style.css" rel = "stylesheet">
    
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script type="text/javascript">
	$(document).ready(function(){
		$('#footer').load('/serviceTechnologies/common/footer.jsp');
		$('#navbar').load('/serviceTechnologies/common/navbar.jsp');
	});
	</script>
	
  </head>
  <body>
 	
 	<div id="navbar"></div>
 	
   <div class="container">
   
	<p>Singolo annuncio</p>
	<form action="http://localhost:8080/ISellToYouRESTWebService/StartPayPalPayment" method="get">
		<button class="btn btn-default btn-primary" ><span class="glyphicon glyphicon-usd"></span> Pay with Paypal</button>
		<input type="hidden" name="emailOwner" value="servicetech@gmail.com">
		<input type="hidden" name="idUser" value = "<%=user.getId()%>">
		<input type="hidden" name="cost" value="1">
		<input type="hidden" name="returnUrl" value="http://127.0.0.1:8080/serviceTechnologies/PayPalReturn">
	</form>
    </div> <!-- End Container -->
 	
 	<div id="footer">
      
    </div>
 	<!-- End footer -->
 	
 	
  </body>
 </html>